package com.example.kt_all.repo

import com.example.kt_all.api.AllApi
import com.example.kt_all.bean.req.OpListBeanReq
import com.example.kt_all.bean.resp.OpListResp
import com.example.kt_common.base.BaseRepository
import com.example.kt_common.network.RespStateData

/**
 * Created by 小陈 on 2025/4/3.
 * Time: 18:25.
 */
class AllRepo(private val api: AllApi) : BaseRepository() {
    suspend fun getOpList(
        opListBeanReq: OpListBeanReq, data: RespStateData<OpListResp>
    ) = dealResp(
        block = { api.getOpList(opListBeanReq) }, data
    )
}